-- GENERATED SPELL FOR [Kalecgos] --


function spell0_24891(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(45026,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24891', 578, 1)
end

function spell1_24891(pUnit, Event) --@Revitalize,Self--
pUnit:FullCastSpellOnTarget(45027,pUnit)
pUnit:RegisterEvent('Sorts_24891', 10500, 1)
end

function Sorts_24891(pUnit, Event)
local choix_sorts_24891 = math.random(0, 1)
if choix_sorts_24891 == 0 then
pUnit:RegisterEvent('spell0_24891', 1, 1)
end
if choix_sorts_24891 == 1 then
pUnit:RegisterEvent('spell1_24891', 1, 1)
end
end

function mob24891_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24891', math.random(1500, 3000), 1)
end

function mob24891_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24891_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24891_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24891, 1, 'mob24891_Action')
RegisterUnitEvent(24891, 2, 'mob24891_Leave')
RegisterUnitEvent(24891, 3, 'mob24891_Kill')
RegisterUnitEvent(24891, 4, 'mob24891_Die')
